import server from "../util/request.js";


export function findExamItem(params) {
    return server({
        url: '/examItem/findAll',
        method: 'GET',
        params
    })
}

// 2 条件查询（分页）
export function listExamItem(params) {
    return server({
        url: '/examItem/list',
        method: 'GET',
        params
    })
}

// 3 新增
export function addExamItem(data) {
    return server({
        url: '/examItem/insert',
        method: 'POST',
        data
    })
}

// 4 修改
export function updateExamItem(data) {
    return server({
        url: '/examItem/update',
        method: 'POST',
        data
    })
}

// 5 删除
export function delExamItem(id) {
    return server({
        url: '/examItem/del',
        method: 'POST',
        params: { id }
    })
}

// 6 科室下拉（新增/编辑弹窗用）
export function roomList() {
    return server({
        url: '/medicalRoom',
        method: 'GET'
    })
}